import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/es/components/message/style/css'
import 'element-plus/es/components/message-box/style/css'

const app = createApp(App)

app.config.warnHandler = (msg) => {
  if (msg.includes('Extraneous non-props attributes (ref_key)')) {
    return
  }
}
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router).mount('#app')